#ifndef ENQUETE_H
#define ENQUETE_H

#include <QObject>
#include <QtSql>
#include "utilisateur.h"
#include "question.h"

class Enquete : public QObject
{
    Q_OBJECT
public:
    explicit Enquete(int id, QObject *parent = 0);
    //~Enquete();
    QString getNom() const;
    void setNom(QString newNom);
    int getId() const;
    void setId(int newId);
    QList<Question*> getQuestions() const;
    QStringList getResultatsEnquete() const;
    Question* getQuestionSuivante() const;
    void setQuestionSuivante(Question* newQuestionSuivante);

signals:
    
public slots:

private:
    int id;
    QString nom;
    QList<Question*> questions;
    QStringList resultatsEnquete;
    Question* questionSuivante;
};

#endif // ENQUETE_H
